from django.contrib.auth.models import User
from django.db import models
from utils.modelsMixin import ModelSetMixin
# Create your models here.
class Classes(ModelSetMixin):
    name = models.CharField(max_length=30,verbose_name='班级名')
    slogan = models.TextField(null=True,blank=True,verbose_name='班级口号')

    member = models.ManyToManyField(User)

    class Mate:
        db_table = 'classes' #表名
        verbose_name = '班级'
        verbose_name_plural = verbose_name # 反向查询